package cn.j0n4than.api.controller.api;

import cn.j0n4than.api.service.UserService;
import cn.j0n4than.api.utils.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jonathan
 */
@RestController
@RequestMapping("/api")
public class TestController {

    @Autowired
    private UserService userService;

    @GetMapping("/ce")
    public Response c() {
        Response success = Response.success();
        success.setResult("userList", userService.getList(1, 1));
        return success;
    }
}
